package accel.activities;

import accel.dataholders.Character;
import accel.movement.MovementDetector;
import accel.movement.StandardAttackSet;
import android.app.Activity;
import android.os.Bundle;

public class FightActivity extends Activity{

	MovementDetector movement;
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        //setContentView(R.layout);
        movement = MovementDetector.getInstance(this);
        movement.registerSensor();
        movement.setMovementSet(Character.instance.getAttacks());
    }
    
    @Override
	protected void onResume() {
		super.onResume();
		movement.registerSensor();
		
	}
    @Override
	protected void onPause() {
		super.onPause();
		movement.unregisterSensor();
	}
}
